<template>
  <div>
    <swiper :options="swiperOption">
      <swiper-slide class="swiper-slide" v-for="(item, index) in slide" :key="index">
        <router-link :to="{path: item.url }" tag="a">
          <img :src="item.imgUrl" alt="">
        </router-link>
      </swiper-slide>
    </swiper>
  </div>
</template>

<script>
import { swiper, swiperSlide } from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
export default {
  data() {
    return {
    }
  },
  components: {
    swiper,
    swiperSlide
  },
  props: {
    slide: {
      type: Array
    },
    swiperOption: {
      type: Object
    }
  }
}
</script>

<style scoped>

</style>